require('../db');     // 连接数据库
const adminService = require('../service/adminService');

// 登录
async function loginTest() {
    console.log(await adminService.login("yangqian", "123456"));
}
loginTest();
// 注册
async function registerTest() {
    console.log(await adminService.register({
        image: "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2724283454,3985809481&fm=26&gp=0.jpg",
        account: "zhangsan",
        password: "123456",
        name: "张三",
        age: 18,
        gender: "男",
        phone: "028-12345678",
        position: 1,
        status: 0

    }));
}
registerTest();
